//
//  DWDComBtn.swift
//  dwdWb
//
//  Created by Dengdwd on 15/10/18.
//  Copyright © 2015年 dwd. All rights reserved.
//

import UIKit
let COM_BTN_W: CGFloat = 80
let COM_BTN_H: CGFloat = 110

class DWDComBtn: UIButton {

    override var highlighted:Bool {
        set{
            
        }
        
        get{
            return false
        }
        
    }
    
    
    
    override func layoutSubviews() {
        super.layoutSubviews()
        imageView?.x = 0
        imageView?.y = 0
        imageView?.size = CGSize(width: COM_BTN_W, height: COM_BTN_W)
        titleLabel?.x = 0
        titleLabel?.y = COM_BTN_W
        titleLabel?.size = CGSize(width: COM_BTN_W, height: COM_BTN_H - COM_BTN_W)
        titleLabel?.textAlignment = NSTextAlignment.Center
    }

}
